package com.sky;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;


@Slf4j
@SpringBootApplication
@EnableTransactionManagement // 开启声明式事务
@MapperScan(basePackages = "com.sky.mapper")
@EnableCaching // 开启缓存注解功能
@EnableScheduling // 开启定时任务功能
public class SkyTakeOutApplication {
    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
        SpringApplication.run((SkyTakeOutApplication.class), args);
        log.info("系统启动了");
    }
}
